# -*- coding: utf-8 -*-
"""
Created on Wed Sep 11 15:25:36 2024
Python中列表是可变的，这是它区别于字符串和元组的最重要的特点，一句话概括即：列表可以修改，而字符串和元组不能。 
@author: Administrator
"""
mylist=[1,1,2,4,6,6,9]

#list.count(x) x count
print(mylist.count(6),mylist.count(0))

#list.reverse()
mylist.reverse()
print(mylist)

#list.pop[index] 

mylist.pop()

print(mylist)

mylist.pop(1)
print(mylist)

#list.append(x)
mylist.append(100)
print(mylist)

#list.sort()
mylist.sort()
print(mylist)


